﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SwInYUtility
{
    public partial class fSettings : Form
    {
        public static fSettings _Instance;

        public fSettings()
        {
            InitializeComponent();
        }

        private void fSettings_Load(object sender, EventArgs e)
        {
            ptgSettings.SelectedObject = Settings._Instance;
            ptgSettings.CollapseAllGridItems();
        }

        private void fSettings_FormClosing(object sender, FormClosingEventArgs e)
        {
            ((Styx.Helpers.Settings)ptgSettings.SelectedObject).Save();
            e.Cancel = true;
            this.Hide();
        }
    }
}
